﻿<Window x:Class="SMS.Shell.Windows.CustomerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="CustomerWindow" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight">
    <Grid>
        <StackPanel>
            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="名称:" Grid.Column="0" VerticalAlignment="Center"/>
                <TextBox Text="{Binding Path=Caption, Mode=TwoWay}" Grid.Column="1" Width="200"/>
            </Grid>
            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="联系人:" Grid.Column="0" VerticalAlignment="Center"/>
                <TextBox Text="{Binding Path=ContactPerson, Mode=TwoWay}" Grid.Column="1"/>
            </Grid>
            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="联系电话:" Grid.Column="0" VerticalAlignment="Center"/>
                <TextBox Text="{Binding Path=Telephone, Mode=TwoWay}" Grid.Column="1"/>
            </Grid>
            <StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Content="确定" Margin="5" Name="_btnSubmit" Click="_btnSubmit_Click" />
                <Button Content="取消" Margin="5" Name="_btnCancel" Click="_btnCancel_Click" />
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
